package com.yuliang.factory;

import java.sql.Connection;
import java.sql.DriverManager;

public class OtherConnectionFactory {
    public Connection getObject() throws Exception {
        Class.forName("com.mysql.jdbc.Driver");
        Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/my_blog?useSSL=false","root","666666");
        return connection;
    }
}
